namespace ComicBook.Data.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class updatedClasses : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.Comics", "Author_Id", "dbo.Authors");
            DropIndex("dbo.Comics", new[] { "Author_Id" });
            AddColumn("dbo.Authors", "Image", c => c.String());
            DropColumn("dbo.Comics", "Author_Id");
        }
        
        public override void Down()
        {
            AddColumn("dbo.Comics", "Author_Id", c => c.Int());
            DropColumn("dbo.Authors", "Image");
            CreateIndex("dbo.Comics", "Author_Id");
            AddForeignKey("dbo.Comics", "Author_Id", "dbo.Authors", "Id");
        }
    }
}
